/**
 * @file userLed.h
 * @brief
 * @author  xiaowine (xiaowine@sina.cn)
 * @version 01.00
 * @date    2021-04-10
 *
 * @copyright Copyright (c) {2020}  xiaowine
 *
 * @par 修改日志:
 * <table>
 * <tr><th>Date       <th>Version <th>Author  <th>Description
 * <tr><td>2021-04-10 <td>1.0     <td>wangh     <td>内容
 * </table>
 * ******************************************************************
 * *                   .::::
 * *                 .::::::::
 * *                ::::::::::
 * *             ..:::::::::::
 * *          '::::::::::::
 * *            .:::::::::
 * *       '::::::::::::::..        女神助攻,流量冲天
 * *            ..::::::::::::.     永不宕机,代码无bug
 * *          ``:::::::::::::::
 * *           ::::``:::::::::'        .:::
 * *          ::::'   ':::::'       .::::::::
 * *        .::::'      ::::     .:::::::'::::
 * *       .:::'       :::::  .:::::::::' ':::::
 * *      .::'        :::::.:::::::::'      ':::::
 * *     .::'         ::::::::::::::'         ``::::
 * * ...:::           ::::::::::::'              ``::
 * *```` ':.          ':::::::::'                  ::::.
 * *                   '.:::::'                    ':'````.
 * ******************************************************************
 */
#ifndef __USERLED_H
#define __USERLED_H
/* Private includes ----------------------------------------------------------*/
#include "user_type.h"
/* Private typedef -----------------------------------------------------------*/

/* Private define ------------------------------------------------------------*/

/* Public define -------------------------------------------------------------*/
#define LEDBUFFNUM 10
extern volatile _USR_FLAGA_type ledState[LEDBUFFNUM];
#define led00State ledState[0].s4bits.s0
#define led01State ledState[0].s4bits.s1
#define led02State ledState[1].s4bits.s0
#define led03State ledState[1].s4bits.s1
#define led04State ledState[2].s4bits.s0
#define led05State ledState[2].s4bits.s1
#define led06State ledState[3].s4bits.s0
#define led07State ledState[3].s4bits.s1
#define led08State ledState[4].s4bits.s0
#define led09State ledState[4].s4bits.s1
#define led10State ledState[5].s4bits.s0
#define led11State ledState[5].s4bits.s1
#define led12State ledState[6].s4bits.s0
#define led13State ledState[6].s4bits.s1
#define led14State ledState[7].s4bits.s0
#define led15State ledState[7].s4bits.s1
#define led16State ledState[8].s4bits.s0
#define led17State ledState[8].s4bits.s1
#define led18State ledState[9].s4bits.s0
#define led19State ledState[9].s4bits.s1

/* Private macro -------------------------------------------------------------*/

/* Private variables ---------------------------------------------------------*/

/* Private function prototypes -----------------------------------------------*/

/* Public function prototypes ------------------------------------------------*/
void ledInit(void);
void userLed(void);
/* Private user code ---------------------------------------------------------*/

#endif
